package com.zhonghui.mes.domain;

import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 生产作业明细对象 mes_job_assembly_item
 * 
 * @author zhonghui
 * @date 2022-05-21
 */
@ApiModel("生产作业明细对象")
public class MesJobAssemblyItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty("编号")
    private Long id;

    /** 生产作业id */
    @ApiModelProperty("生产作业id")
    @Excel(name = "生产作业id")
    private Long jobId;

    /** 物料id */
    @ApiModelProperty("物料id")
    @Excel(name = "物料id")
    private Long materialId;

    /** 消耗数量 */
    @Excel(name = "消耗数量")
    @ApiModelProperty("消耗数量")
    private Double usageQuantity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setJobId(Long jobId)
    {
        this.jobId = jobId;
    }

    public Long getJobId()
    {
        return jobId;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setUsageQuantity(Double usageQuantity)
    {
        this.usageQuantity = usageQuantity;
    }

    public Double getUsageQuantity()
    {
        return usageQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobId", getJobId())
            .append("materialId", getMaterialId())
            .append("usageQuantity", getUsageQuantity())
            .toString();
    }
}
